import { Order } from 'src/order/entities/order.entity';
import {
  Column,
  CreateDateColumn,
  Entity,
  OneToMany,
  PrimaryGeneratedColumn,
} from 'typeorm';

@Entity()
export class User {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ name: 'nick_name' })
  nickName: string;

  @Column({ name: 'avatar_url' })
  avatarUrl: string;

  @Column()
  gender: number;

  @Column({ name: 'open_id' })
  openId: string;

  @CreateDateColumn({ name: 'update_time' })
  updateTime: Date;
}
